﻿using LuShanTea.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LuShanTea.IService
{
    public interface IGoodImsSrcService:IServiceSupport
    {
        long AddNew(GoodImgSrcDTO goodImgSrc);   //为商品添加图片
        void MakeDelete(long goodImgSrcId); //  软删除
        GoodImgSrcDTO[] GetImgsByGoodId(long goodId);   //  获取指定商品下的所有图片
        GoodImgSrcDTO GetImgSrcByCategoryId(long categoryId);

        GoodImgSrcDTO[] GetFirstImgByGoodId(IEnumerable<long> goodIds);

        GoodImgSrcDTO GetFirstThumImgByGoodId(long goodId);

        GoodImgSrcDTO GetFirstImgByGoodId(long goodId);
    }
}
